<?php

Util::tsRegisterAssetJs('reports.js');
/**
 * Precarga highchart para poder realizar la grafica a mano
 */
$cs = Yii::app()->getClientScript();
$baseUrl = Yii::app()->theme->baseUrl;
$cs->registerScriptFile($baseUrl . '/js/highcharts.src.js');

/** @var CartaAlimentosController $this */
/** @var CartaAlimentos $model */
if (Yii::app()->user->checkAccess("nutricion")):
    $this->menu = array(
        array('label' => Yii::t('AweCrud.app', 'Crear') . ' Nuevo Menú Alimenticio', 'icon' => 'plus', 'url' => array('ajaxMaestro')),
    );
endif;
?>
<div class="row-fluid ">
    <div class="span10">
        <?php $this->renderPartial('portlets/admin_cartaNutricional', array('widget' => $widget)) ?>
    </div>
    <div class="span2">
        <?php
        $this->beginWidget('zii.widgets.CPortlet', array(
            'title' => 'Operaciones',
        ));
        $this->widget('zii.widgets.CMenu', array(
            'items' => $this->menu,
            'htmlOptions' => array('class' => 'operations'),
        ));
        $this->endWidget();
        ?>

    </div>
</div>